home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS16.ADF
/
C
/
InputHandler
/
ReadMe.DOC
< prev
next >
Wrap
Text File
|
1989-01-27
|
2KB
|
37 lines
One program sets up an input device handler that will trace some very raw
keyboard input and some mouse movement. It is useful for determining the
code and qualifier fields of an input event record. It exits via a F1
down/up slowly.
The second program is also an input device handler but it is not passive
and modifies the input stream before intuition gets control. It is useful
as an example of how to do this as well as a utility that I use to allow a
bit of a MACRO input to the text editor TxEd. It defines 4 function keys
for some hard to type right-amiga functions and it permits a very quick
drag selection and copy/cut to clipboard by sensing both the down stroke
and up stroke of the left alt key. The left amiga key is also sensed and
inserts a paste command into the input stream. This allows one to move and
copy keeping the right hand on the mouse instead of having to move it to
the right amiga key (or doing a biggggg split between left thumb and left
pinky to type right amiga c/x).
NOTE: These programs ONLY WORK with MANX C. There is imbeded assembly
language that is not compatible with Lattice but an hour of work could
convert it to Lattice plus amiga assembler. Since input handlers are
called with the register context of the input device, some tricks had to be
done to use MANX's small code and small data models (A4 has to be set up).
Both are built using the 16 bit library:
cc in ;the txed utility
ln in.o -lc
cc in1 ;the trace utility
ln in1.o -lc
This description file is in the arc plus another document file.
Happy Hacking
Eric